package com.java.androidmarket.service;

import com.java.androidmarket.dto.order.GetOrderDTO;
import com.java.androidmarket.dto.order.OrderDTO;
import com.java.androidmarket.entity.Order;

import java.util.List;
import java.util.Map;

/**
 * description:
 * author:张腾
 * date:2021-05-15
 */
public interface OrderService {

    int addOrder(Order order);

    List<GetOrderDTO> getAllOrder(int userId);

    GetOrderDTO getOneOrder(String orderSn);

    void changeStatus(Order order);

    List<GetOrderDTO> getOrderByStatus(int userId,int orderStatus);

    List<Map<String,Integer>> getOrderNum(int userId);

    void deleteOrder(String orderSn);

    void deleteRedis();

    void deleteRedis(String orderSn);

    int getOrderId(String orderSn);

    String addKillOrder(OrderDTO orderDTO);
}
